package com.ray.bean;

import java.util.List;

import com.google.appengine.repackaged.com.google.common.base.Predicate;

import lombok.Data;

@Data
public class PutOutWarehouseBean extends BaseBean implements Cloneable {
    private String orderId;//订单编号
    private String rowIndex;//行号
    private String materialType;//物料类型
    private Integer count;//合格数
    private Integer noCount;//不合格数
    private int inOutType;//出入库类型  1 入库 2 出库
    private int source;//关联对象 1 车间  2 仓库 3外协  4外协返回
    private String sourceName;//来源名称  车间或者仓库
    private String otherId;//关联id
    private int type;//类型
    private String typeId;//类型id
    private int isApprpval;//是否有审核权限  1有 2没有
    
    
    private String companyOrderId;//公司订单编号
    private String factoryId;//工厂型号
    private String customerId;//客户型号
    private String deptId;//部门id
    private String workShopId;//车间id
    private String color;//颜色
    private String frameType;//架型
    
    private  double materialCount;//物料单位数量
	private  String  materialUnit;//物料单位
	
	private String materialCode;//物料代码
	
	private String additionalMaterialType;//附加物料类型
	private String additionalRowIndex;//附加行
	private String additionalColor;//附加颜色
	private String remark;//备注
    
    private List<String> approvalNameList;//审核人姓名list
    
    @Override
	public PutOutWarehouseBean clone() throws CloneNotSupportedException {
    	PutOutWarehouseBean stu = null;  
	        try{  
	            stu = (PutOutWarehouseBean)super.clone();  
	        }catch(CloneNotSupportedException e) {  
	            e.printStackTrace();  
	        }  
	     return stu;  
	}
	
    
    public Integer getSum() {
    	int count=this.count==null?0:this.count;
    	int noCount=this.noCount==null?0:this.noCount;
    	return count+noCount;
    }
}
